import './App.css';
import {HashRouter as Router,Route, Switch} from 'react-router-dom'
import Layout from './pages/Layout'
import Home from './pages/Home/Home';
import House from './pages/House/House';
import News from './pages/News/News';

function App() {
  return (
    <div className="App">
      
      <Router>
       <Switch>
         <Layout path='/'>
           <Route exact path='/' component={(props) => <Home {...props} />}/>
           <Route path='/house' component={(props) => <House {...props} />}/>
           <Route path='/news' component={(props) => <News {...props} />}/>
         </Layout>
       </Switch>
     </Router>

    </div>
  );
}

export default App;
